function IntegralProgrammeView() {
    var _this = this;
    _this.init = function () {
        _this.initRules();
    };
    _this.initRules = function () {
        //登录
        var integralRule7 = $("#integralRule7").val();
        if(integralRule7!=''){
            var json = eval("("+integralRule7+")");
            var arr = json.loginRule;

            for(var i=0;i<arr.length;i++){
                var arrDay = arr[i].day;
                var arrScore = arr[i].score;
                if(arrDay == "1"){
                    $("#score7").html(arrScore);
                }
            }
        }else{
            $("#loginId").hide();
            $("#loginId1").hide();
        }
        //考试积分
        var integralRule8 = $("#integralRule8").val();
        if(integralRule8!=''){
            var json = eval("("+integralRule8+")");
            $("#score8").html(json.score);

        }else{
            $("#projectExamId").hide();
            $("#projectExamId1").hide();
        }
        //学时积分
        var integralRule9 = $("#integralRule9").val();
        if(integralRule9!=''){
            var json = eval("("+integralRule9+")");
            $("#studyTime9").html(json.studytime);
            $("#score9").html(json.score);
            $("#studyTimeMin9").html(json.studytimeMin);

        } else{
            $("#projectStudyId").hide();
            $("#projectStudyId1").hide();
            $("#studyTimeMin1").hide();
        }
        //自学积分
        var integralRule10 = $("#integralRule10").val();
        if(integralRule10!=''){
            var json = eval("("+integralRule10+")");
            $("#studyTime10").html(json.studytime);
            $("#score10").html(json.score);
            $("#studyTimeMin10").html(json.studytimeMin);

        }else{
            $("#studySelfId").hide();
            $("#studySelfId1").hide();
            $("#studyTimeMin").hide();
        }
    };

}

var integralProgrammeView = new IntegralProgrammeView();